package cn.baddonkey.photography.agent.controller;

import cn.baddonkey.photography.agent.core.PlatformResponse;
import cn.baddonkey.photography.agent.service.COSService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cos")
public class COSController {

    @Autowired
    private COSService cosService;

    @PostMapping("/getTempSecret")
    public PlatformResponse getTempSecret() {
        return PlatformResponse.ok(cosService.getTempSecret());
    }
}
